<template>
  <a-modal
    title="添加分析指标"
    :visible="visible"
    :confirm-loading="confirmLoading"
    @ok="handleOk"
    @cancel="handleCancel"
  >
    <p>添加分析指标</p>
  </a-modal>
</template>

<script lang="ts">
import { defineComponent, ref } from "vue";
export default defineComponent({
  props: {
    visible: {
      type: Boolean,
      require: true,
      default: false
    }
  },
  setup(props: any, cxt: any) {
    const confirmLoading = ref<boolean>(false);
    const handleOk = () => {};
    const handleCancel = () => {
      cxt.emit("cancelFn");
    };
    return { confirmLoading, handleOk, handleCancel };
  }
});
</script>
<style lang="less" scoped></style>
